<%@page contentType="text/html;charset=UTF-8"%>
<%@ page import="whf.framework.web.Constants"%>

<%@taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/tlds/framework.tld" prefix="framework"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><bean:write name="STRUTS-META" property="name" /></title>
<jsp:include page="/common/inc/select.jsp" />
<script language="javascript">
	function form_onsubmit(){
		var msg = checkFormValidation(event.srcElement);
		var form = currentForm();
		if(msg == ""){
			if(form("password").value != form("password2").value){
				alert("确认密码和密码不一致！");
				return false;
			}
			return true;
		} else {
			alert(msg);
			return false;
		}
	}
</script>
</head>
<body>

<html:form action="<%=  (String)request.getAttribute(Constants.STRUTS_PATH) %>" method="post" onsubmit="return form_onsubmit()">
<html:hidden property="webMethod" />
<framework:ext />
<framework:table id="first3" navPosition="none" pageSize="1" displayStyle="form" editable="true" 
	useStrutsForm="true">
	<framework:column displayTitle="登录名" property="login" required="true" maxLength="12" />
	<framework:column displayTitle="密码" property="password" required="true" displayType="PASSWORD" maxLength="8" />
	<framework:column displayTitle="确认密码" property="password2" required="true" displayType="PASSWORD" maxLength="8" />
</framework:table>
<framework:table id="second" navPosition="none" pageSize="1" displayStyle="form" editable="true" 
	useStrutsForm="true" view="SHOP-MEMBER-REGISTER" />
<html:submit><bean:message key="form.submit" /></html:submit>
<html:reset><bean:message key="form.reset" /></html:reset>
</html:form>

</body>
</html> 